﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JST.TPLMS.Entitys;

public class DeliveryOrderDetail
{
    public DeliveryOrderDetail()
    {
        this.Id = 0;
        this.Qty = 0;
        this.CargoCode = string.Empty;
        this.CargoName = string.Empty;
        this.Brand = string.Empty;
        this.Country = string.Empty;
        this.CreateTime = DateTime.Now;
        this.Curr = string.Empty;
        this.GrossWt = 0;
        this.Height = 0;
        this.HSCode = string.Empty;
        this.Length = 0;
        this.SecdLawfQty = 0;
        this.LawfQty = 0;
        this.NetWt = 0;
        this.Package = string.Empty;
        this.Price = 0;

        this.Spcf = string.Empty;
        this.Unit = string.Empty;
        this.DeliveryNo = string.Empty;
        this.LawfUnit = string.Empty;
        this.Vol = 0;
        this.Width = 0;
        this.LawfUnit = string.Empty;
        this.SecdLawfUnit = string.Empty;
        this.SeqNo = 0;
        this.LvyrlfModeCode = string.Empty;
        this.ClyMarkcode = string.Empty;
        this.PurchaseOrderDetailId = 0;
    }

    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public int Id { get; set; }


    public string CargoCode { get; set; }
    [MaxLength(10)] public string HSCode { get; set; }
    public string CargoName { get; set; }
    public string Spcf { get; set; }
    public string Unit { get; set; }
    public string Country { get; set; }
    public string Brand { get; set; }
    public string Curr { get; set; }
    public string Package { get; set; }
    public decimal Length { get; set; }
    public decimal Width { get; set; }
    public decimal Height { get; set; }
    public decimal Vol { get; set; }

    public decimal Price { get; set; }
    public decimal TotalAmt { get; set; }
    public decimal GrossWt { get; set; }

    public decimal NetWt { get; set; }

    [NotMapped] public DateTime CreateTime { get; set; }
    public string DeliveryNo { get; set; }
    public int SeqNo { get; set; }


    public decimal Qty { get; set; }

    public decimal LawfQty { get; set; }
    public decimal SecdLawfQty { get; set; }


    public string LawfUnit { get; set; }
    public string SecdLawfUnit { get; set; }
    public string LvyrlfModeCode { get; set; }
    public string ClyMarkcode { get; set; }
    public int PurchaseOrderDetailId { get; set; }
}